import 'package:flutter/material.dart';
import 'package:flutter_home_manager/pages/Home/components/HomeList.dart';
import 'package:flutter_home_manager/pages/Home/components/HomeNav.dart';

class HomeView extends StatefulWidget {
  HomeView({Key? key}) : super(key: key);

  @override
  _HomeViewState createState() => _HomeViewState();
}

class _HomeViewState extends State<HomeView> {
  @override
  Widget build(BuildContext context) {
    return Container(
      child: Scaffold(
        appBar: AppBar(
          title: const Text('享家社区'),
          centerTitle: true,
        ),
        body: ListView(
          scrollDirection: Axis.vertical,
          children: [
            HomeNav(),
            Image.asset(
              'assets/images/banner@2x.jpg',
              height: 200,
              fit: BoxFit.cover,
            ),
            HomeList(),
          ],
        ),
      ),
    );
  }
}
